﻿<%@ Page Title="Estructura de Articulos" Language="C#" MasterPageFile="~/Delivery.master" AutoEventWireup="true" CodeFile="frmArticuloEstructura.aspx.cs" Inherits="Administracion_frmArticuloEstructura" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenido" Runat="Server">
    <table  cellpadding="2" cellspacing="2" align="center">
        <tr>
            <td colspan="4">
                <asp:ValidationSummary ID="vsErrores" runat="server" 
                HeaderText="Han ocurrido los siguientes errores:" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblArticulo" runat="server" Text="Articulo:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DropArticulo" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblApellido" runat="server" Text="Componente:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="DropComponente" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Label ID="lblCantidad" runat="server" Text="Cantidad:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtCantidad" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td colspan="3">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td colspan="3">
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="4" align="center">
                <asp:Button ID="butNuevo" runat="server" Text="Nuevo" BorderStyle="None" 
                CausesValidation="False" onclick="butNuevo_Click" />
                <asp:Button ID="butModificar" runat="server" Text="Modificar" 
                CausesValidation="False" onclick="butModificar_Click" BorderStyle="None" />
                <asp:Button ID="butEliminar" runat="server" Text="Eliminar" 
                CausesValidation="False" onclick="butEliminar_Click" BorderStyle="None" />
            &nbsp;<asp:Button ID="butAceptar" runat="server" Text="Aceptar" 
                onclick="butAceptar_Click" BorderStyle="None" />
                <asp:Button ID="butCancelar" runat="server" CausesValidation="False" 
                Text="Cancelar" onclick="butCancelar_Click" BorderStyle="None" 
                style="height: 22px" />
            </td>
        </tr>
    </table>
    <br />
    <table align="center" cellpadding="2" cellspacing="2">
        <tr>
            <td>
                <asp:Label ID="lblFiltro" runat="server" Text="Filtrar por:"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblFiltroApellido" runat="server" Text="Apellido"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtFiltroApellido" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="butBuscar" runat="server" CausesValidation="False" 
                Text="Buscar" onclick="butBuscar_Click" BorderStyle="None" />
            </td>
        </tr>
    </table>
    <br />
    <table align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <asp:GridView ID="grvDatos" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" PageSize="5" 
                    onselectedindexchanged="grvDatos_SelectedIndexChanged" 
                    onpageindexchanged="grvDatos_PageIndexChanged">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="Codigo" HeaderText="Codigo" 
                            SortExpression="Codigo" />
                        <asp:BoundField DataField="Apellido" HeaderText="Apellido" 
                            SortExpression="Apellido" />
                        <asp:BoundField DataField="Nombre" HeaderText="Nombre" 
                            SortExpression="Nombre" />
                        <asp:CommandField ShowSelectButton="True" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

